cmake_minimum_required(VERSION 3.15)
project(test)
file(GLOB SRC ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
set (CMAKE_CXX_STANDARD 11)
include_directories(${PROJECT_SOURCE_DIR}/include)

message("xxxxxxxxxxx")

link_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib2)
add_executable(app ${SRC})
message(STATUS "1111111111")

#定义宏
add_definitions(-DAAA)

#链接动态库  写到最后 因为动态库不一定用得到
target_link_libraries(app calc)
#message(FATAL_ERROR "222222")
message(STATUS "3333")


